package com.zswl.bus.widget;

import android.content.Context;
import android.util.AttributeSet;
import android.webkit.WebChromeClient;
import android.webkit.WebView;
import android.webkit.WebViewClient;

/**
 * Created by Administrator on 2018/7/16 0016.
 */

public class MyWebView extends WebView {
    private static final String TAG = "MyWebView";



    public MyWebView(Context context) {
        this(context, null);
    }


    public MyWebView(final Context context, AttributeSet attrs) {
        super(context, attrs);

        getSettings().setJavaScriptEnabled(true);
        setWebChromeClient(new WebChromeClient());
        setWebViewClient(new WebViewClient());
    }


}
